import com.itheima.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @program: Spring_day01_01_IOC入门程序
 * @description:
 * @author: xuejingjing
 * @create: 2021-08-02 19:44
 **/
public class APP {
    public static void main(String[] args) {
        ApplicationContext atc = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService) atc.getBean("userService");
//        userService.save(666);
//        int ret = userService.update();
//        System.out.println("app..."+ret);
          userService.delete();//
    }
}
